import bio from "@/api/axios";
export default {
  postPageBio(params) {
    return bio.post('/bion/v1/bion/queryBionByPage', params)
  },

  // 添加
  postAddBreed(params) {
    return bio.post('/bion/v1/bion/add', params)
  },

  // 查询母本信息
  /*  postAddBreed(params) {
                   return bio.get('/v1/bion/queryBionByMatrix/', { params })
               }, */
  // v1/bion/queryBionByMatrix/{breed}
  // /v1/bion/queryBionByMatrix/{breed}查询母羊信息
  getQueryEweInformation(params) {
    return bio.get(`/bion/v1/bion/queryBionByMatrix/${params}`)
  },

  // 根据母羊ID查询妊娠记录
  // birth/v1/queryByCondition
  postQueryByCondition(params) {
    return bio.post('/breeding/birth/v1/queryByCondition', params)
  },

  // 添加/v1/bion/add
  postAdd(params) {
    return bio.post('/bion/v1/bion/add', params)
  },

  // 查询品种
  getQueryBreed(params) {
    return bio.get(`/bion/v1/bion/queryBreed/${params}`)
  },

  // 根据个体id查详细信息/v1/bion/queryBionById/{bionId}
  postQueryID(params) {
    return bio.get(`/bion/v1/bion/queryBionById/${params}`)
  },

  // 修改个体信息接口/v1/bion/edit
  postEdit(params) {
    return bio.post('/bion/v1/bion/edit', params)
  },

  // 根据个体编号查询
  getQueryIdList(params) { },

  // 批次查询/bion/batch/queryByCondition
  getBatchQueryByCondition() {
    return bio.get('/bion/batch/queryList')
  },
  // 查询设施组 /bion/facility/queryFacilityGroupAll
  queryFacilityGroupAll(params) {
    return bio.post('/bion/facility/queryFacilityGroupAll', params)
  },
  // 根据条件查询设施羊圈 /bion/facility/queryByCondition
  postFacilityQueryByCondition(params) {
    return bio.get(`/bion/facility/queryByFacilityGroupId/?facilityGroupId=${params}`)
  },
  /**
  * @description: 查询所有个体信息
  * @return {Object}
  */
  queryBionAll(params) {
    return bio.get(`/bion/v1/bion/queryBionAll/${params.breed}`);
  },
  // 判断耳标是否可用/bion/v1/bion/queryBionByEagTag/{breed}/{eagTag}
  queryBionByEagTag(params) {
    return bio.get(`/bion/v1/bion/queryBionByEagTag/${params.breed}/${params.eagTag}`);
  },
  // 体重
  queryBionGrowthRecord(params) {
    return bio.get(`bion/bionGrowthRecord/queryBionGrowthRecord/${params}`)
  },
  // 查询父母本信息 bion/archive/v1/query/
  query(params) {
    return bio.get(`bion/archive/v1/query/${params}`)
  },
  // 通过条件筛选羊
  /*
  'number':this.fathersearchpar.number,
					'gender':'MALE',
					'generation':this.fathersearchpar.generation,
					'facilityGroupId':this.fathersearchpar.facilityGroupId,
					'facilityId':this.fathersearchpar.facilityId,
  */
  newsearchyang(params) {
    return bio.post('bion/v1/bion/queryBionByCondition', params)
  },
  // 获取这只羊的关系
  getguanximes(params) {
    return bio.get(`bion/v1/bion/queryThreeGenerations/${params}`)
  }
}
